package com.bl.weilan.dao.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Data
@Table(name = "report")
@ApiModel(value = "ReportEntity", description = "报告")
@DynamicInsert
@DynamicUpdate
public class ReportEntity {
    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "报告名称")
    private String title;

    @ApiModelProperty(value = "出版商")
    private String publisher;

    @ApiModelProperty(value = "报告连接")
    private String url;

    @ApiModelProperty(value = "报告大小")
    private Double size;

    @ApiModelProperty(value = "图片")
    private String image;

    @ApiModelProperty(value = "权重")
    private int weight;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @Column(name = "update_time")
    private Date updateTime;

    @ApiModelProperty(value = "文件名")
    @Column(name = "doc_name")
    private String docName;
}
